package pl.edu.pw.ee.buildcity.scheduler.strategies;

import pl.edu.pw.ee.buildcity.commons.exceptions.BuildCityRuntimeException;
import pl.edu.pw.ee.buildcity.scheduler.BuildContext;

import java.io.File;

/**
 * @author Mateusz
 * @since 2010-02-28
 */
public class BuildNotRequiredStrategy extends BuildStrategy {

	public BuildNotRequiredStrategy(BuildContext context, File workingCopy) {
		super(context, workingCopy);
	}

	@Override
	public void performBuild() throws BuildCityRuntimeException {
		log.warn("Code not changed, so no action is being performed");
	}

	/**
	 * Does nothing, as we do not need any information about activity when code is up-to-date
	 */
	@Override
	public void preProcess() {
	}

	/**
	 * Does nothing, as we do not need any information about activity when code is up-to-date
	 */
	@Override
	public void postProcess() {
	}
}
